package com.ruoyi.bussiness.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.bussiness.mapper.TraExamRegistrationMapper;
import com.ruoyi.bussiness.domain.TraExamRegistration;
import com.ruoyi.bussiness.service.ITraExamRegistrationService;
import com.ruoyi.common.core.text.Convert;

/**
 * 考试报名Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-11-12
 */
@Service
public class TraExamRegistrationServiceImpl implements ITraExamRegistrationService 
{
    @Autowired
    private TraExamRegistrationMapper traExamRegistrationMapper;

    /**
     * 查询考试报名
     * 
     * @param id 考试报名主键
     * @return 考试报名
     */
    @Override
    public TraExamRegistration selectTraExamRegistrationById(Long id)
    {
        return traExamRegistrationMapper.selectTraExamRegistrationById(id);
    }

    /**
     * 查询考试报名列表
     * 
     * @param traExamRegistration 考试报名
     * @return 考试报名
     */
    @Override
    public List<TraExamRegistration> selectTraExamRegistrationList(TraExamRegistration traExamRegistration)
    {
        return traExamRegistrationMapper.selectTraExamRegistrationList(traExamRegistration);
    }

    /**
     * 新增考试报名
     * 
     * @param traExamRegistration 考试报名
     * @return 结果
     */
    @Override
    public int insertTraExamRegistration(TraExamRegistration traExamRegistration)
    {
        return traExamRegistrationMapper.insertTraExamRegistration(traExamRegistration);
    }

    /**
     * 修改考试报名
     * 
     * @param traExamRegistration 考试报名
     * @return 结果
     */
    @Override
    public int updateTraExamRegistration(TraExamRegistration traExamRegistration)
    {
        return traExamRegistrationMapper.updateTraExamRegistration(traExamRegistration);
    }

    /**
     * 批量删除考试报名
     * 
     * @param ids 需要删除的考试报名主键
     * @return 结果
     */
    @Override
    public int deleteTraExamRegistrationByIds(String ids)
    {
        return traExamRegistrationMapper.deleteTraExamRegistrationByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除考试报名信息
     * 
     * @param id 考试报名主键
     * @return 结果
     */
    @Override
    public int deleteTraExamRegistrationById(Long id)
    {
        return traExamRegistrationMapper.deleteTraExamRegistrationById(id);
    }
}
